package com.example.model.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "User", description="APP用户信息表")
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    @Schema(description = "密码、通信等加密盐")
    private String userSalt;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "密码,md5加密")
    private String password;

    @Schema(description = "手机号")
    private String userPhone;

    @Schema(description = "头像")
    private String userImage;

    @Schema(description = "0 男	            1 女	            2 未知")
    private Integer userSex;

    @Schema(description = "0 未	            1 是")
    private Integer isCertification;

    @Schema(description = "是否身份认证")
    private Boolean isIdentityAuthentication;

    @Schema(description = "0正常	            1锁定")
    private Integer userStatus;

    @Schema(description = "0 普通用户	            1 自媒体人	            2 大V")
    private Short userFlag;

    @Schema(description = "注册时间")
    private Date createdTime;
}